package com.itheima.advance.reflect.demo02;

public class Student {

    // 私有的有参构造方法
    private Student(String name){
        System.out.println("name ----->>> " + name);
        System.out.println("private........Student.....有参构造方法......");
    }

    // 公共的无参构造方法
    public Student() {
        System.out.println("public........Student.....无参构造方法......");
    }

    // 公共的有参构造方法
    public Student(String name , int age) {
        System.out.println("name ----->>> " + name + ", age ------>>> " + age);
        System.out.println("public........Student.....有参构造方法......");
    }

}
